﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MediaGarden.Services;
using MediaGarden.Formats;

namespace MediaGarden.Images.Formats
{
    public class JpegFormat : MimeMediaFormat
    {
        public override string FormatName
        {
            get { return "Jpeg"; }
        }

        public override string FormatDisplayName
        {
            get { return "Joint Photographic Experts Group Image"; }
        }
        public override string MediaStereotype
        {
            get { return "Image"; }
        }

        public override IEnumerable<string> FileExtensions()
        {
            yield return "jpeg";
            yield return "jpg";
        }

        public override IEnumerable<string> MimeTypes()
        {
            yield return "image/jpeg";
            // For IE uploads (apparently)
            yield return "image/pjpeg";
        }

    }
}